package cn.ulyer.common.transcode.secret;

/**
 * 加解密转码处理类
 */
public interface TranscodeHandler {

    /**
     * 加密返回16进制字符
     * @param key
     * @param sourceText
     * @return
     */
    String encryptHex(Object key,String sourceText);

    String decrypt(Object key,String hexOrBase64);

    String algorithm();

    byte[] signature(Object key,String source);

    boolean verifySign(Object key,String source,String signData);


}
